package com.example.mybatisplus.entity.enums;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;

public enum PhoneEnum implements IEnum{

	 CMCC("10086", "中国移动"),
	    CUCC("10010", "中国联通"),
	    CT("10000", "中国电信");

	    private String value;
	    private String desc;

	    PhoneEnum(final String value, final String desc) {
	        this.value = value;
	        this.desc = desc;
	    }

	    public Serializable getValue() {
	        return this.value;
	    }

	    @JsonValue
	    public String getDesc(){
	        return this.desc;
	    }
}
